package com.conan.array.exer1;import org.junit.Test;import java.util.Scanner;/** * @version 加油！！！ * @Description * @Author 谷藤新一GYC * @Date 2023/7/28-20:51 */public class ArrayTest3 {    public static void main(String[] args) {        Scanner scanner = new Scanner(System.in);        System.out.print("请输入：");        String [] str = new String[]{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};        String st = scanner.nextLine();        int num = Integer.parseInt(st);        if(num<1||num>7){            System.out.println("输入错误！");        }        System.out.println(str[num-1]);        scanner.close();    }}   